﻿
//注册
function Reg() {
    if (this.req.responseText == "suceeded") {
        var name = document.getElementById("name").value;
        document.getElementById("bt_Register").style.display ="none";
        document.getElementById("login").innerHTML += "注册成功!登录试试？";
    }
    else {
        document.getElementById("login").innerHTML += "注册失败";
    }
}
function UserReg(source) {
    var name = document.getElementById("name").value;
    var pw = document.getElementById("password").value;
    if (name == "" || pw == "") return;
    var url = "AjaxResponse/Register.aspx?name=" + name + "&password=" + pw;
    new ContentLoader(url,  Reg);

}